
const Router = require('express')
const UserController = require('../../user/controllers.js')
const router = Router()

/* 服务端 */
// router.get('/user/list', checkUserSession, UserController.getUsers)
router.get('/user/list', UserController.getUsers)
/* 添加用户 */
router.post('/user/new', UserController.createUser)
// /* 用户登陆 */
// router.post('/user/login', UserController.loginAction)
// /* 退出登陆 */
// router.post('/user/logout', UserController.logoutAction)
// /* 拉取用户信息 */
// router.get('/user/:id', UserController.getOne)
// /* 删除用户 */
router.post('/user/delete', UserController.deleteOne)
// /* 更新用户 */
// router.post('/user/:id', UserController.updateOne)


/* 客户端 */
// router.get('/member', UserController.getUsers)
// router.get('/member/:id', UserController.memberGetBaseInfo)
// router.post('/member/login', UserController.memberLoginAction)
// router.post('/member/logout', checkUserSession, UserController.logoutAction)
router.post('/member/regist', UserController.memberRegistAction)
// router.post('/member/avatar', checkUserSession, UserController.memberUpdateAvatar)
// router.post('/member/profile', checkUserSession, UserController.memberUpdateProfile)

module.exports = router
